home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / utils / kbdread.c < prev   
C/C++ Source or Header  |  1994-03-13  |  459b  |  25 lines

  1. /*
  2. ** kbdread.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <pictor.h>
  9.  
  10. void main()
  11. {
  12.     int key;
  13.  
  14.     printf("KBDREAD, Version 1.51, Copyright (c) 1992-94 SoftCircuits\n");
  15.     printf("Redistributed by permission.\n\n");
  16.  
  17.     printf("Press key to see keyboard code (Escape quits):\n");
  18.  
  19.     do {
  20.         key = kbdread();
  21.         printf("0x%04X\n",key);
  22.     } while(key != ESCAPE_KEY);
  23.  
  24. } /* main */
  25.